package com.vehicle.service;

import com.vehicle.bean.Record;
import com.baomidou.mybatisplus.extension.service.IService;
import com.vehicle.form.AddRecordForm;
import com.vehicle.vo.AdminRecordVO;
import com.vehicle.vo.RecordInfoVO;
import com.vehicle.vo.UserRecordVO;
import org.springframework.context.annotation.Scope;
import org.springframework.stereotype.Service;

import java.time.LocalDateTime;
import java.util.List;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author 校园车辆管理系统
 * @since 2023-04-21
 */
@Service
public interface RecordService extends IService<Record> {

    public AdminRecordVO getAllRecordList(Integer page, Integer size);

    public List<Record> getUserRecord(Integer id);

    public UserRecordVO getUserDetail(Integer id);

    public Record addRecordListIn(String ip,Integer id,AddRecordForm addRecordForm);

    public Boolean addRecordListOut(String ip,Integer aid,Integer id);

    public List<RecordInfoVO> getNewTen();

    public Integer getNumber(Integer userId);
    public LocalDateTime getTime(Integer userId);

    public Record existOrNot(Integer userId);

    public Record existInKu(Integer parkingId);

    public boolean carExistInkU(Integer userId);

}
